package com.wjc.train.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wjc.train.business.req.DailyTrainStationQueryReq;
import com.wjc.train.business.req.DailyTrainStationSaveReq;
import com.wjc.train.business.resp.DailyTrainStationQueryResp;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 每日车次车站表 服务类
 * </p>
 *
 * @author Guessed
 * @since 2023-08-09
 */
public interface IDailyTrainStationService  {

  /**
     * 保存或修改
     * @param dailytrainstationSaveReq
     */
    void save(DailyTrainStationSaveReq dailytrainstationSaveReq);

    /**
     * 分页查询
     * @param page
     * @param dailytrainstationQueryReq
     * @return
     */
    IPage<DailyTrainStationQueryResp> queryList(IPage<DailyTrainStationQueryResp> page, DailyTrainStationQueryReq dailytrainstationQueryReq);

    /**
     * 删除
     * @param id
     */
    void delete(Long id);

  /**
   * 生成每日车站信息
   */
  void genDaily(Date date, String trainCode);

  long countByTrainCode(Date trainDate,String trainCode);


  List<DailyTrainStationQueryResp> queryByTrain(Date date, String trainCode);
}
